#ifndef CMAIN
#define CMAIN
#include <vector>
#include "ITask.h"

class CMain : public ITask
{
public :
	CMain(unsigned int id):ITask(id){};
	virtual ~CMain(){};

	virtual bool init();
	virtual bool run();
	virtual void uninit();

	virtual bool addTask(ITask* ptask);
	virtual bool delTask(unsigned int taskId);

private :
	typedef std::vector<ITask*> VECTOR_TASK;
	VECTOR_TASK m_vecTasks;

};
#endif